package com.pgcomb.poweriot.alarmservice.config;

import org.springframework.amqp.core.Queue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhengheqi
 * @version 1.0.0
 * @Description: TODO
 * @Date 2021/7/7 17:57
 */
@Configuration
public class MqConfig {

    @Value("${alarm.sendMsg.alarmESQueue}")
    private String alarmEsQueue;

    @Bean
    public Queue alarmMqttQueue(){
        return new Queue(alarmEsQueue, true);
    }
}
